package com.matt.domain.course;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "course_type")
@Data
@EqualsAndHashCode(callSuper = true)
public class CourseType extends Model{

	@Column(columnDefinition = "varchar(52) comment '内部类型：1，SAT早教课程，2，园区自建，3，公共课程'")
	@JsonIgnore
	private Integer type;

	@Column(columnDefinition = "varchar(52) comment '类型名称'")
	private String typeName;

//	private Integer typeCode;

	@Column(columnDefinition = "int(3) comment '课程类型模板 1,主题课程模版,2:老的SAT模版 3:园区自建'")
	@JsonIgnore
	private Integer templateType;


	@Column(columnDefinition = "varchar(32) comment '园区id'")
	@JsonIgnore
	private String areaId;

	private Integer status;

	private boolean deleted;

	private Date created;
}
